package com.fhz.day003

/**
 * 时间:2021/10/14
 * @author msfeng
 * 简述: TODO
 */
fun main() {

//    val study = Study
    doStudy(null)
}

fun doStudy(study: Study?) {
//    if(study != null){
        study!!.readBooks()
        study?.doHomeWork()
//    }
//    study?.readBooks()
//    study?.doHomeWork()

    study?.let {
        it.readBooks()
        it.doHomeWork()
    }

}